<div class="box-orange <?if ($this->router->method == 'get_all') echo 'details_radius';?> <?if ($this->router->method == 'home') echo 'top-arrow-box';?>">

    <form action="<?=base_url('excursions/search')?>" method="POST" id="excusrsionsSearch">

        <h4><?= lang('search.excursions') ?></h4>

        <ul class="side-form wide">
            <li>
                <label><?= lang('search.keywords') ?>:</label>
                <input type="text" value="<?if (isset($_POST['freetext'])) echo $_POST['freetext']; ?>" name="freetext" id="freetext" placeholder="<?= lang('search.city.region.interes') ?>">
            </li>
        </ul>
        <?
            $week_days = lang('week_days');
        ?>
        <ul class="two-columns clearfix">
            <li class="left">
                <h5><?= lang('search.start.dates') ?></h5>
                <ul class="side-form">
                    <li> <input type="checkbox" name="monday"    <?if(isset($_POST['monday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[0];?></small> </li>
                    <li> <input type="checkbox" name="tuesday"   <?if(isset($_POST['tuesday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[1];?></small> </li>
                    <li> <input type="checkbox" name="wednesday" <?if(isset($_POST['wednesday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[2];?></small> </li>
                    <li> <input type="checkbox" name="thursday"  <?if(isset($_POST['thursday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[3];?></small> </li>
                    <li> <input type="checkbox" name="friday"    <?if(isset($_POST['friday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[4];?></small> </li>
                    <li> <input type="checkbox" name="saturday"  <?if(isset($_POST['saturday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[5];?></small> </li>
                    <li> <input type="checkbox" name="sunday"    <?if(isset($_POST['sunday'])) echo 'checked="checked"'; ?>> <small><?=$week_days[6];?></small> </li>
                </ul>
            </li>
            <li class="right">
                <h5><?= lang('search.travelers') ?></h5>
                <ul class="side-form">
                    <li>
                        <label><?= lang('adults') ?></label>
                        <select class="dropdownized" name="adults" style="width:115px">
                            <?//$this->firephp->log($_POST['adults']);?>
                            <? if (!isset($_POST['adults'])) $first_select = 'selected="selected"';?>
                            <option value="1" <?if (isset($_POST['adults']) && $_POST['adults'] == 1) echo 'selected="selected"'; ?>>1</option>
                            <option value="2" <?if (isset($_POST['adults']) && $_POST['adults'] == 2) echo 'selected="selected"'; if (isset($first_select)) echo $first_select; ?>>2</option>
                            <option value="3" <?if (isset($_POST['adults']) && $_POST['adults'] == 3) echo 'selected="selected"'; ?>>3</option>
                            <option value="4" <?if (isset($_POST['adults']) && $_POST['adults'] == 4) echo 'selected="selected"'; ?>>4</option>
                            <option value="5" <?if (isset($_POST['adults']) && $_POST['adults'] == 5) echo 'selected="selected"'; ?>>5</option>
                            <option value="6" <?if (isset($_POST['adults']) && $_POST['adults'] == 6) echo 'selected="selected"'; ?>>6</option>
                            <option value="7" <?if (isset($_POST['adults']) && $_POST['adults'] == 7) echo 'selected="selected"'; ?>>7</option>
                            <option value="8" <?if (isset($_POST['adults']) && $_POST['adults'] == 8) echo 'selected="selected"'; ?>>8</option>
                            <option value="9" <?if (isset($_POST['adults']) && $_POST['adults'] == 9) echo 'selected="selected"'; ?>>9</option>

                        </select>
                    </li>
                    <li>
                        <label class="clearfix"><span class="left"><?= lang('children') ?></span> <span title="<?= lang('children_discount') ?>" class="cancelation tooltip"></span></label>
                        <select class="dropdownized" name="children" style="width:115px">
                            <option value="0" <?if (isset($_POST['children']) && $_POST['children'] == 0) echo 'selected="selected"'; ?>>0</option>
                            <option value="1" <?if (isset($_POST['children']) && $_POST['children'] == 1) echo 'selected="selected"'; ?>>1</option>
                            <option value="2" <?if (isset($_POST['children']) && $_POST['children'] == 2) echo 'selected="selected"'; ?>>2</option>
                            <option value="3" <?if (isset($_POST['children']) && $_POST['children'] == 3) echo 'selected="selected"'; ?>>3</option>
                            <option value="4" <?if (isset($_POST['children']) && $_POST['children'] == 4) echo 'selected="selected"'; ?>>4</option>
                            <option value="5" <?if (isset($_POST['children']) && $_POST['children'] == 5) echo 'selected="selected"'; ?>>5</option>
                            <option value="6" <?if (isset($_POST['children']) && $_POST['children'] == 6) echo 'selected="selected"'; ?>>6</option>
                            <option value="7" <?if (isset($_POST['children']) && $_POST['children'] == 7) echo 'selected="selected"'; ?>>7</option>
                            <option value="8" <?if (isset($_POST['children']) && $_POST['children'] == 8) echo 'selected="selected"'; ?>>8</option>
                            <option value="9" <?if (isset($_POST['children']) && $_POST['children'] == 9) echo 'selected="selected"'; ?>>9</option>

                        </select>
                    </li>
                </ul>
            </li>
        </ul>

        <input type="submit" value="<?= lang('search.show.best.prices') ?>" class="form-button button-search" style="margin-top: 2px;">

    </form>

</div>